package com.six.core.service;


import com.six.core.entity.Role;
import com.six.core.vo.EmpRoleVo;
import com.six.core.vo.Result;
import com.six.core.vo.RoleVo;
import org.springframework.stereotype.Service;

@Service
public interface RoleService {


    Result findByRoleName(Integer currentPage, Integer pageSize, String roleName);

    Result findByUserId(Integer userId);

    Result fenRole(EmpRoleVo empRoleVo);

    Result deleteRoleById(Integer roleid);

    Result findAll(Integer currentPage, Integer pageSize, RoleVo roleVo);

    Result updateRole(Role role);

    Result findPermissionByRoleId(Integer roleId);

    Result addRole(Role role);
}
